home *** CD-ROM | disk | FTP | other *** search
- SYSTEM INFO_com
- PRG formatted GEOS file V1.0
- StarNX-1000C
- OP V3.0 or higherNFO
- SYSTEM INFO_COM
- BLASTER'S CONVERTER V2.5
- SID-DEMO 5_com
- 0"READ-ME FIRST
- Write Image V2.1
- geoWrite V2.2
- ` Quelltext zur geoCOM-Demodiskette `
- ` (c)94 BY DENIS D\HLER/FALK REHWAGEN`
- ` Die Demodiskette kann kostenlos angefordert `
- ` werden bei: `
- ` GUSS, Denis D|hler , Gorkistr.18 , 04347 Leipzig `
- NAME "SYSTEM INFO"
- AUTHOR "Denis D|hler"
- CLASS "System Info V1.0"
- STARTFLAG$40
- BYTEVARzz,e,muster,fertig,x1,x2,lw,e1,m,byte,i
- INTVARy1,y2,reu
- STRVAR 5; string,typ
- STRVAR 10;wochentag,tag,vers,nat
- STRVAR 2;modus
- ROW 4 STRVAR16;disk
- ROW 12 BYTEVARdat : ROW 4 BYTEVARgd,hd
- ROW 4 STRVAR13;drive
- ROW 4 INTVARadresse
- STRVAR16;floppyname : STRVAR13;was
- ROW 67 BYTEVARicon
- LABEL berechnen1,berechnen2
- LABEL schleife,taste,info,start
- @start
- floppyname=(DISKNAME) : lw=curdrive
- (icon<1>)=21 : (icon<2>)=0 : (icon<3>)=$bf
- CLS : PATTERN0
- `Aufbauen`
- RECT(DBL2,0),17,(DBL180,1),117 : FRAME(DBL2,0),17,(DBL180,1),117
- RECT(DBL184,0),2,(DBL316,1),14 : FRAME(DBL184,0),2,(DBL316,1),14
- `Text schreiben`
- SETPOS(DBL200,0),10 : PRINT"/BInfo-System/P"
- SETPOS(DBL20,0),50 : PRINT"Bitte einen Moment warten !"
- ` Logo `
- PATTERN1 : RECT(DBL53,0),148,(DBL282,1),192
- PATTERN0 : RECT(DBL45,0),140,(DBL274,1),184
- FRAME(DBL45,0),140,(DBL274,1),184
- IF(scrflag==$80)THEN
- SETPOS230,155 : PRINT"/O/BSystem- und File-Info's/P"
- SETPOS278,165 : PRINT"(w)'93 by Denis D|hler"
- SETPOS222,175 : PRINT"Quelltext kann frei verwendet werden !"
- (icon<0>)=(3OR128)
- SETPOS74,155 : PRINT"/O/BSystem- und File-Info's/P"
- SETPOS112,165 : PRINT"(w)'93 by Denis D|hler"
- SETPOS74,175 : PRINT"Quelltext kann frei verwendet werden !"
- (icon<0>)=3
- ENDIF
- WAIT50
- `Pattern berechnen`
- x1=17 : x2=34 : y1=184 : y2=205 : fertig=0 : muster=0 : berechnen2
- x1=34 : x2=51 : y1=184 : y2=205 : berechnen2 : x1=51 : x2=68 : y1=184 : y2=205 : berechnen2
- x1=68 : x2=85 : y1=184 : y2=205 : berechnen2 : x1=85 : x2=101 : y1=184 : y2=205 : berechnen2
- x1=101 : x2=117 : y1=184 : y2=205 : berechnen2
- berechnen1
- `gefundene Daten zeigen`
- PATTERN0
- RECT(DBL6,0),40,(DBL178,1),80
- RECT(DBL2,0),120,(DBL317,1),196 :
- RECT(DBL2,0),120,(DBL317,1),196 : FRAME(DBL2,0),120,(DBL317,1),196
- SETPOS(DBL10,0),30 : PRINT"/PHeute ist :"
- SETPOS(DBL70,0),30 : PRINTwochentag; : PRINT", der "; : PRINTtag
- SETPOS(DBL10,0),40 : PRINT"Aktuelle LW-Nr: /B"
- SETPOS(DBL105,0),40 : PRINT(STRlw)
- SETPOS(DBL10,0),50 : PRINT"/PRAM-Gr|~e: /B"
- SETPOS(DBL105,0),50 : PRINT(STRreu); : PRINT" KByte/P"
- SETPOS(DBL10,0),60 : PRINT"/PZeichen-Modus: /B"
- SETPOS(DBL105,0),60 : PRINTmodus; : PRINT"-Zeichen"
- SETPOS(DBL10,0),70 : PRINT"/PComputer: /B"
- SETPOS(DBL105,0),70 : PRINTtyp
- SETPOS(DBL10,0),80 : PRINT"/PGeos Version: /B"
- SETPOS(DBL105,0),80 : PRINTvers
- SETPOS(DBL105,0),90 : PRINTnat
- SETPOS(DBL10,0),100 : PRINT"/PSeriennummerr: /B"
- SETPOS(DBL105,0),100 : PRINT(STR(sysreg<0>))
- SETPOS(DBL105,0),110 : PRINT"$"; : PRINT(HEXSTR(sysreg<0>))
- FRAME(DBL260,0),133,(DBL266,0),139 : FRAME(DBL280,0),133,(DBL286,0),139
- FRAME(DBL260,0),144,(DBL266,0),150 : FRAME(DBL280,0),144,(DBL286,0),150
- FRAME(DBL260,0),154,(DBL266,0),160 : FRAME(DBL280,0),154,(DBL286,0),160
- FRAME(DBL260,0),165,(DBL266,0),171 : FRAME(DBL280,0),165,(DBL286,0),171
- SETPOS(DBL255,0),129 : PRINT"/PSys Hau "
- SETPOS(DBL8,0),140 : PRINT"/BLw. A: /P"; : PRINT(drive<0>)
- SETPOS(DBL135,0),140 : PRINT"/BDisk : /P"; : PRINT(disk<0>)
- IF(gd<0>) : INVERT(DBL261,0),134,(DBL265,0),138 : ENDIF
- IF(hd<0>) : INVERT(DBL281,0),134,(DBL285,0),138 : ENDIF
- SETPOS(DBL8,0),150 : PRINT"/BLw. B: /P"; : PRINT(drive<1>)
- SETPOS(DBL135,0),150 : PRINT"/BDisk : /P"; : PRINT(disk<1>)
- IF(gd<1>) : INVERT(DBL261,0),145,(DBL265,0),149 : ENDIF
- IF(hd<1>) : INVERT(DBL281,0),145,(DBL285,0),149 : ENDIF
- SETPOS(DBL8,0),160 : PRINT"/BLw. C: /P"; : PRINT(drive<2>)
- SETPOS(DBL135,0),160 : PRINT"/BDisk : /P"; : PRINT(disk<2>)
- IF(gd<2>) : INVERT(DBL261,0),155,(DBL265,0),159 : ENDIF
- IF(hd<2>) : INVERT(DBL281,0),155,(DBL285,0),159 : ENDIF
- SETPOS(DBL8,0),170 : PRINT"/BLw. D: /P"; : PRINT(drive<3>)
- SETPOS(DBL135,0),170 : PRINT"/BDisk : /P"; : PRINT(disk<3>)
- IF(gd<3>) : INVERT(DBL261,0),166,(DBL265,0),170 : ENDIF
- IF(hd<3>) : INVERT(DBL281,0),166,(DBL285,0),170 : ENDIF
- SETPOS(DBL8,0),180 : PRINT"/BDrucker: /P"; : PRINT(STR16AT$8465)
- SETPOS(DBL8,0),190 : PRINT"/BEingabe: /P" ; : PRINT(STR16AT$88cb)
- SETPOS(DBL165,0),190 : PRINT"/BMaus: "
- MOVE$84c1,(ADR(icon<4>)),$bf
- BITMAP(DBL25),174,(OBJECTAT(ADR(icon<0>)))
- PRINT"/P" : GOTO schleife
- @berechnen1
- `Wochentag berechnen`
- (dat<0>)=5 : (dat<1>)=1 : (dat<2>)=1 : (dat<3>)=4 : (dat<4>)=6 : (dat<5>)=2
- (dat<6>)=4 : (dat<7>)=0 : (dat<8>)=3 : (dat<9>)=5 : (dat<10>)=1 : (dat<11>)=3
- tag=((STR(date<2>))+".") : tag=(tag+(STR(date<1>))) : tag=((tag+".")+(STR(date<0>)))
- zz=(((dat<((date<1>)-1)>)+(date<2>))+((date<0>)-93)) : IF (zz>37) : zz=(zz-6) : ENDIF
- REPEAT : IF(zz>7) : zz=(zz-7) : ENDIF : UNTIL (zz < 8) : DECzz
- IF(zz==0) : wochentag="Sonntag" : ENDIF : IF(zz==1) : wochentag="Montag" : ENDIF
- IF(zz==2) : wochentag="Dienstag" : ENDIF : IF(zz==3) : wochentag="Mittwoch" : ENDIF
- IF(zz==4) : wochentag="Donnerstag" : ENDIF : IF(zz==5) : wochentag="Freitag" : ENDIF
- IF(zz==6) : wochentag="Samstag" : ENDIF
- `RAM-Gr|~e ausrechnen`
- reu=((INT(PEEK$88c3))*64)
- `Versionstyp auslesen`
- IF(version==$12) : vers="V. 1.2" : ENDIF
- IF(version==$13) : vers="V. 1.3" : ENDIF
- IF(version==$15) : vers="V. 1.5" : ENDIF
- IF(version==$20) : vers="V. 2.0" : ENDIF
- `Seriennummer auslesen`
- CALLSYS$c196,sysreg
- `Kernal-Nationalit{t`
- IF(nation==$00) : nat="USA" : ENDIF : IF(nation==$01) : nat="Germany" : ENDIF
- `Bildschirmmodus und Computertyp`
- IF(scrflag==128) : modus="80" : ELSE : modus="40" : ENDI
- `Kernal-Nationalit{t`
- IF(nation==$00) : nat="USA" : ENDIF : IF(nation==$01) : nat="Germany" : ENDIF
- `Bildschirmmodus und Computertyp`
- IF(scrflag==128) : modus="80" : ELSE : modus="40" : ENDIF
- IF((PEEK$c013)==128) : typ="C 128" : ELSE : typ="C 64" : ENDIF
- `Laufwerke und Diskettennamen auslesen`
- `Adressen der Diskettennamen`
- (adresse<0>)=$841e : (adresse<1>)=$8430 : (adresse<2>)=$88dc : (adresse<3>)=$88ee
- e1=0 : REPEAT : (drive<e1>)="Kein Laufwerk !" : INCe1 : UNTIL(e1==4)
- DEVICE8 : e=8 : e1=0
- REPEAT
- OPENDISK
- IF(iostat<>0) : (disk<e1>)="Keine Disk !" : ELSE
- (disk<e1>)=(STR16AT(adresse<e1>)) : i=(PEEK$82bd)
- IF (i ==$42) : (gd<e1>) = 1 : ELSE : (gd<e1>)=0 : ENDIF
- IF (i ==$50) : (hd<e1>) = 1 : ELSE : (hd<e1>)=0 : ENDIF
- ENDIF
- IF((drtype<e>)==1) : (drive<e1>)="Typ 1541" : ENDIF
- IF((drtype<e>)==2) : (drive<e1>)="Typ 1571" : ENDIF
- IF((drtype<e>)==3) : (drive<e1>)="Typ 1581" : ENDIF
- IF((drtype<e>)==65) : (drive<e1>)="schatt. 1541" : ENDIF
- IF((drtype<e>)==66) : (drive<e1>)="schatt. 1571" : ENDIF
- IF((drtype<e>)==67) : (drive<e1>)="schatt. 1581" : ENDIF
- IF((drtype<e>)==129) : (drive<e1>)="RAM 1541" : ENDIF
- IF((drtype<e>)==130) : (drive<e1>)="RAM 1571" : ENDIF
- IF((drtype<e>)==131) : (drive<e1>)="RAM 1581" : ENDIF
- INCe : INCe1 : DRIVE : IF(iostat<>0) : DEVICElw : RETURN : ENDIF
- UNTIL(e==12) : DEVICElw : RETURN
- @berechnen2
- REPEAT : PATTERN muster : RECT(DBLy1,0),x1,(DBLy2,1),x2 : FRAME(DBLy1,0),x1,(DBLy2,1),x2
- y1=(y1+22) : y2=(y2+22) : INCmuster : INCfertig
- UNTIL(fertig == 6) : fertig=0
- RETURN
- @schleife
- ON 0 GOTOtaste : MAINLOOP
- GOTOschleife
- @taste
- IF (keydata==$f1) : END : ENDIF
- IF (keydata==233) : info : ENDIF
- GOTO schleife
- @info
- STRNBOX"/BSystem- und File-info's/P","(w)'93 by Denis D|hler","Quelltext frei verwendbar !"
- RETURN
- ) : INVERT(DBL281,0),155,(DBL285,0),159 : ENDIF
- SETPOS(DBL8,0),170 : PRINT"/BLw. D: /P"; : PRINT(drive<3>)
- SETPOS(DBL135,0),170 : PRINT"/BDisk : /P"; : PRINT(disk<3>)
- IF(gd<3>) : INVERT(DBL261,0),166,(DBL265,0),170 : ENDI
-